package com.eh.decorator.io;

import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;

/**
 * Created by David on 2016/4/24.
 */
public class InputTest {
    public static void main(String[] args) {
        try (InputStream in = new LowerCaseInputStream(
                new BufferedInputStream(InputTest.class.getClassLoader().getResourceAsStream("test.txt")))) {
            int c;
            while ((c = in.read()) >= 0) {
                System.out.print((char) c);
            }
        } catch (IOException e)

        {
            e.printStackTrace();
        }

    }
}
